<?php
namespace app\admin\controller;
use \think\facade\View;
use \think\facade\Request;

class user
{
    public function user()
    {
        $keywords = Request::param('keywords');
        $where[] = ['uname','like',"%{$keywords}%"];

        $user=\app\admin\model\Admin::getUser($where);
        View::assign('user',$user);
        return view('user');
    }
    public function userAdd()
    {
        return view('user_add');
    }
    public function auth()
    {
        return view('auth');
    }
    public function authAdd()
    {
        return view('auth_add');
    }
}